package cn.wgx.module.sys.service;

import cn.wgx.common.base.IBaseService;
import cn.wgx.common.entity.sys.Role;
import cn.wgx.module.sys.mapper.RoleMapper;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class RoleService extends IBaseService<RoleMapper, Role> {

    public Set<Role> findRolesByUserId(Integer userId) {
        return baseMapper.findRolesByUserId(userId);
    }
}
